﻿<UserControl 
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"  
    x:Class="DreamExplanation.SearchControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="480" d:DesignWidth="480">

    <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="86"/>
            <RowDefinition Height="531*"/>
        </Grid.RowDefinitions>
        

        <toolkit:AutoCompleteBox Name="acbSearchClass" Margin="-8,9,150,5" MinimumPrefixLength="1" FilterMode="Contains"
                        IsTextCompletionEnabled="True" Grid.Row="1" />
        
        <Button Content="搜索" Grid.Row="1" Height="72" HorizontalAlignment="Left" Margin="296,9,0,0" Name="btSearch"  VerticalAlignment="Top" Width="160" Click="btSearch_Click" />
        <TextBox Grid.Row="2" Height="72" HorizontalAlignment="Left" Margin="-16,0,0,0" Name="noRecord" Text="没有找到，请重新搜索。" VerticalAlignment="Top" Width="322" Visibility="Collapsed" />
    </Grid>
</UserControl>
